import layout from '../layout/layout.vue'

function load (component) {
  return () => import(`../pages/${component}.vue`)
}
export default [
  {
    path: '/paper',
    component: layout,
    meta: { title: '论文预发', requireAuth: true },
    children: [
      {
        path: '/',
        component: load('paper/index'),
        meta: { title: '论文预发', requireAuth: true }
      },
      {
        path: 'user',
        component: load('paper/user'),
        meta: { title: '人员管理', requireAuth: true }
      },
      {
        path: 'paperAudit',
        component: load('paper/paper-audit'),
        meta: { title: '论文审核', requireAuth: true }
      },
      {
        path: 'commentManage',
        component: load('paper/comment-manage'),
        meta: { title: '评论管理', requireAuth: true }
      }
    ]
  }
]